//
//  AFNetManager+wxPay.h
//  TestJSPay
//
//  Created by hongliang on 16/3/26.
//  Copyright © 2016年 hongliang. All rights reserved.
//

#import "AFNetManager.h"

@interface AFNetManager (wxPay)
/**
 *  根据点开的订单号和金额生成自己的订单
 *
 *  @param orderId       点开的订单号
 *  @param paymentAmount 金额
 *  @param finishBlock
 *
 *  @return
 */
- (NSURLSessionDataTask*)wxPayWithDianKaiOrderId:(NSString*)orderIdDianKai paymentAmount:(NSString*)paymentAmount finished:(HttpRequestFinishedBlock)finishBlock;

/**
 *  查询订单的状态
 *
 *  @param tradeNo     自己的订单号
 *  @param finishBlock
 *
 *  @return 
 */
- (BOOL)didStartQueryPay:(NSString*)tradeNo finished:(HttpRequestFinishedBlock)finishBlock;
@end
